#ifndef __PROTOCOL_H_
#define __PROTOCOL_H_

#define START_BYTE 0x55

#define MESG_TYPE_NODE_ALIVE 0
#define MESG_TYPE_PIR_DETECTION 1

#define BOARD_TYPE_SIMPLE_NODE_V5 0

#define N_RETRY 4

#define pWrite writeManchester //(option: Manchester)
#define pRead readManchester //(option: Manchester)

#define mesg_type_exists(t) (t<2)

extern char *BOARD_TYPE_TO_STRING[];


#endif
